{template 'common/header'}
<div class="nav nav-tabs">
<ul class="nav nav-tabs">
  <li {if $opp == 'cards'}class="active"{/if}><a href="{php echo $this->createWebUrl('cards');}">名片管理</a></li>
  <li {if $opp == 'indus'}class="active"{/if}><a href="{php echo $this->createWebUrl('indus');}">行业设置</a></li>
  <li {if $opp == 'card_overrule'}class="active"{/if}><a href="{php echo $this->createWebUrl('card_overrule');}">顶置设置</a></li>
  <li {if $opp == 'videosetup'}class="active"{/if}><a href="{php echo $this->createWebUrl('videosetup');}">视频设置</a></li>
  <li {if $opp == 'wxacode'}class="active"{/if}><a href="{php echo $this->createWebUrl('wxacode');}">专属二维码设置</a></li>
</ul>
</div>
<div class="main">
<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">

	    <input type="hidden" name="id" value="{$deat['id']}" />
        
		<div class="panel panel-default">

			<div class="panel-heading">

			视频设置

			</div>

			<div class="panel-body">
            <div class="form-group">
                    <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require"></span>是否开视频功能</label>
                    <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
                    
                  <label class="radio-inline"><input type="radio" onclick="sendtypeshow(1)" name="video_p" value="1" {if $deat['video_p'] == 1|| $deat['video_p']}checked{/if}>开启</label>
                  <label class="radio-inline"><input type="radio" onclick="sendtypeshow(0)" name="video_p" value="0" {if $deat['video_p'] == 0 }checked{/if}>关闭</label>
                        <div class="help-block"></div>
                    </div>
                    </div>
                    <div class="form-group model1">
                    <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require"></span>是否开启视频收费功能</label>
                    <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
                        <label class="radio-inline"><input type="radio" onclick="sendtypeshow2(1)" name="video_pay" value="1" {if $deat['video_pay'] == 1 || $deat['video_pay']}checked {/if}>开启</label>
                        <label class="radio-inline"><input type="radio" onclick="sendtypeshow2(0)" name="video_pay" value="0" {if $deat['video_pay'] == 0 }checked {/if}>关闭</label>
                        <div class="help-block">开启用户交纳年费后才能发视频</div>
                    </div>
            </div>
                <div class="form-group model2 model4">
                    <label class="col-xs-12 col-sm-4 col-md-3 control-label">视频年费金额（元）:</label>
                    <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
                        <input type="text" id="pay_coll" name="pay_coll"  class="form-control" value="{$deat['pay_coll']}"/>
                        <div class="help-block">天数按365天计算</div>
                    </div>
                </div>
               <div class="form-group model3">
					<label class="col-xs-12 col-sm-3 col-md-3 control-label">上传视频大小限制（M）</label>
					<div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
						<input type="text" id='ontrial' name="ontrial" class="form-control" value="{$deat['ontrial']}" />
					</div>
				</div>
               <div class="form-group model3">

			<label class="col-xs-12 col-sm-3 col-md-3 control-label">视频播放控制设置</label>

			 <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">

				<div style="border:1px #eee dashed; padding:10px;background:#F5F5F5;">

		<label for="autoplay" class="checkbox-inline"><input id="autoplay" type="checkbox" name="autoplay" value="true" {if $deat['autoplay'] == 'true'}checked="checked"{/if}> 自动播放</label>

		<label for="loop" class="checkbox-inline"><input id="loop" type="checkbox" name="loop" value="true" {if $deat['loop'] == 'true'}checked="checked"{/if}> 循环播放</label>

	<label for="muted" class="checkbox-inline"><input id="muted" type="checkbox" name="muted" value="true" {if $deat['muted'] == 'true'}checked="checked"{/if}> 静音播放</label>

				</div>

			<div class="help-block">视频播放控制设置</div>
			</div>
		</div>
		</div>
		<div class="form-group col-sm-12">

			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />

			<input type="hidden" name="token" value="{$_W['token']}" />

		</div>

	</form>
  </div>
</div>
<script>
    function sendtypeshow(sf) {
        if (sf==1) {
            $(".model1").show();
			$(".model2").show();
			$(".model3").show();
        } else {
			$(".model1").hide();
			$(".model2").hide();
			$(".model3").hide();
        }
    }
	function sendtypeshow2(sf) {
        if (sf==1) {
			$(".model4").show();
        } else {
			$(".model4").hide();
        }
    }
    
</script>

{template 'common/footer'}